package cn.zw.msmp.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.zw.msmp.service.impl.CustomerServiceImpl;

@RestController
@RequestMapping("/echo/")
public class EchoController {
	
	private static final Logger log = LogManager.getLogger(CustomerServiceImpl.class);
	
	
	@RequestMapping("/status")
	public String status() {
		log.info("[info]:echo status start");
		log.debug("[debug]:echo status start");
		log.warn("[warn]:echo status start");
		log.error("[error]:echo status start");
		log.fatal("[fatal]:echo status start");
		
		return "running<br>";
	}
}
